package com.app.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 单位信息
 * </p>
 *
 * @author yoominic
 * @since 2024-07-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_company")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Company implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 单位名称
     */
    private String companyName;

    /**
     * 单位联系电话
     */
    private String companyPhone;

    /**
     * 单位地址
     */
    private String companyAddress;

    /**
     * 支付密钥
     */
    private String payKey;

    /**
     * 状态 1正常 0作废
     */
    private Integer status;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    private BigDecimal longitude;

    private BigDecimal latitude;
    /**
     * 单价
     */
    private BigDecimal unitPrice;


}
